package com.qqqq.dao;


import com.qqqq.domain.User;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public interface IUserDao {
    User getUserByUserName(String username,String password) throws SQLException;

    List<User> getUserList(ResultSet rs) throws SQLException;

//    List<User> List(User user) throws SQLException;

    List<User> page(User user, int pageNum, int pageSize) throws SQLException;

    int count(User user) throws SQLException;

    User getUser(int id) throws SQLException;

    int addUser(User user) throws SQLException;

    int updateUser(User user) throws SQLException;

    int deleteStudent(int id) throws SQLException;
}
